package com.wing.bill.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.bill.entity.PurchaseBill;
import com.wing.bill.entity.PurchaseBillReceipt;
import com.wing.bill.entity.PurchaseBillSettle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 采购账单发票记录
 *
 * @author xiayang
 */
@Mapper
public interface PurchaseBillReceiptDao extends BaseMapper<PurchaseBillReceipt> {

    /**
     * 列表
     *
     * @param params
     * @return
     */
    List<PurchaseBillReceipt> list(@Param("params") Map<String, Object> params);

    /**
     * 分页列表
     *
     * @param params
     * @return
     */
    List<PurchaseBillReceipt> list(@Param("page") Page<PurchaseBill> page, @Param("params") Map<String, Object> params);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    PurchaseBillReceipt get(Long id);

}
